;*******************************************************************
; test_isr_64.asm
;
; contains an IST for use with testing the interrupt system
; prints a hello message to the screen when invoked
;*******************************************************************

global test_isr
extern Printf

;*******************************************************************
section .rodata

msgISRHello	db 10,"[TESTISR] ISR stack is at 0x%a",0

;*******************************************************************
section .text

test_isr:
	; print hello
	
	mov	rdi, msgISRHello
	mov	rsi, rsp
	call	Printf
	
	;cli
	;hlt
	
	; finished
	iretq
